<template>
  <view class="content">
    <view class="input">
      <input
        type="text"
        placeholder="支持搜索双色球"
        v-model="value"
        @confirm="input"
      />
    </view>
    <view>
      <view class="zb" v-if="buffer">
        <p>彩票种类：{{ value }}</p>
        <p>彩票期号：22091</p>
        <p>开奖时间：2022-08-10</p>
        <p>中奖号码：02,11,20,22,34,04,12</p>
        <p>是否中奖：未知</p>
        <button class="del" @click="del">x</button>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      value: "",
      buffer: false,
    };
  },
  onLoad() {},
  methods: {
    input() {
      this.buffer = true;
    },
    del() {
      this.buffer = false;
    },
  },
};
</script>

<style>
.content {
  width: 100%;
  height: 100vh;
  background-color: #fb91a5;
}
.input {
  width: 100%;
  height: 55px;
  background-color: #fff;
}
input {
  width: 90%;
  height: 60px;
  padding-left: 20px;
  /* line-height: 60px; */
  /* background-color: #ccc; */
}
.zb {
  width: 300px;
  height: 300px;
  background-color: #fff;
  border-radius: 10px;
  /* margin-top: 30px; */
  margin: 20px auto;
  padding-top: 70px;
  box-sizing: border-box;
  background-color: #ff838e;
  position: relative;
}
p {
  text-align: center;
  margin: 10px 0;
  color: #fff;
}
.del {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: black;
  line-height: 20px;
  padding-left: 5px;
  color: white;
}
</style>
